package per.songyu.pj.activity.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import per.songyu.pj.activity.dao.ActivityDAO;
import per.songyu.pj.activity.pojo.Activity;

import java.util.List;

@Service
public class ActivityServiceImpl implements ActivityService{

   @Autowired
   private ActivityDAO activityDAO;

    @Override
    public List<Activity> findAcitvitys() {

        return activityDAO.findActivitys();
    }
}
